﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using MaxLeaf.Platform.Contract;
using MaxLeaf.Platform.BLLImplementation;
using MaxLeaf.Platform.DataContract;
using CommonsLib.Utility;
using CommonsLib.Settings;

namespace MaxLeaf.Platform.BLLServer
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“OrderProcessBSL”。
    public class GoodsBSL : BaseBLLServer, IGoodsProcess
    {
         
        public double GetWebPrice(int intGoodsID, int intUnitID, int intAreaID, int intUserID,int intPriceType)
        {
            GoodsProcessor bll = new GoodsProcessor();

            return bll.GetWebPrice(intGoodsID, intUnitID, intAreaID, intUserID, intPriceType);
        }

        public double GetRate(int intGoodsID, int intUnitID )
        {
            GoodsProcessor bll = new GoodsProcessor();

            return bll.GetRate(intGoodsID, intUnitID);
        }

        public List<ImInvMasterDataModel> GetNoInvLocItems(int intCompanyID, int intGoodsID)
        {
            GoodsProcessor bll = new GoodsProcessor();

            return bll.GetNoInvLocItems(intCompanyID,intGoodsID);
        }


        public SCPCategoryDataModel GetSCPCategory(int intUserID, int intGoodsID, bool blnTop)
        {
            GoodsProcessor bll = new GoodsProcessor();

            return bll.GetSCPCategory(intUserID, intGoodsID,  blnTop);
        }


        public List<goods_categoryDataModel> GetGoodCateGoryBySCPCategory(int intCompanyID, int intSCPCategoryID)
        {
            GoodsProcessor bll = new GoodsProcessor();

            return bll.GetGoodCateGoryBySCPCategory(intCompanyID, intSCPCategoryID);
        }

        public List<string> GetUserKeywords(int intCompanyID, string strStKeywords, int intCount)
        {
            GoodsProcessor bll = new GoodsProcessor();

            return bll.GetUserKeywords(  intCompanyID,strStKeywords, intCount);
        }
    }
}
